<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Shop.Master" Inherits="Shop.Framework.Page.Reciept" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<title>Order Reciept</title>
    <link href="/Content/reciept.css" type="text/css" rel="Stylesheet" />
    <script type="text/javascript">
        Reciept = new function() {
            this.Print = function() {
                $("#recieptArea").printArea({ mode: "popup", popClose: false });
            }
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="registration_wrapper"><h3>Checkout Finished</h3></div>
    <div class="registration_wrapper" style="border: solid 2px #7adccf;" id="recieptArea">
        
        <b>Sale Detail</b>
        <hr />
        <div class="registration_labels">    
            <div class="registration_labels left"><b>ORDER #:</b></div>
            <div class="left vals">#<%=WebCart.Self.CustomerOrder.IdCustomer%></div>
            <div class="clear"></div>            
        </div> 
        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Sale To:</b></div>
            <div class="left vals"><%=WebCart.Self.CurrentCustomer.FirstName %> <%=WebCart.Self.CurrentCustomer.LastName %></div>
            <div class="clear"></div>            
        </div>        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Email:</b></div>
            <div class="left vals"><%=WebCart.Self.CurrentCustomer.LoginId %> </div>
            <div class="clear"></div>            
        </div>
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Address:</b></div>
            <div class="left vals">
                <%=WebCart.Self.CurrentCustomer.Street %> <%=WebCart.Self.CurrentCustomer.City %><br/>
                <%=WebCart.Self.CurrentCustomer.Country %>  <%=WebCart.Self.CurrentCustomer.Zip %> 
            </div>
            <div class="clear"></div>            
        </div>
        
        <b>Delivery Detail</b>
        <hr />
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Name:</b></div>
            <div class="left vals"><%=WebCart.Self.CustomerOrder.FirstName %> <%=WebCart.Self.CustomerOrder.LastName %></div>
            <div class="clear"></div>            
        </div>
        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Address:</b></div>
            <div class="left vals">
                <%=WebCart.Self.CustomerOrder.DeliveryStreet %> <%=WebCart.Self.CustomerOrder.DeliveryCity%><br/>
                <%=WebCart.Self.CustomerOrder.DeliveryCountry%>  <%=WebCart.Self.CustomerOrder.DeliveryZip%> 
            </div>
            <div class="clear"></div>            
        </div>
        
        <%if (WebCart.Self.CustomerOrder.ExtraCharge > 0) { %>
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Shipping Charge:</b></div>
            <div class="left vals"><%=WebCart.Self.CustomerOrder.ExtraCharge.ToString("C") %></div>
            <div class="clear"></div>
        </div>
        <%} %>
        
        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Total Payment:</b></div>
            <div class="left vals"><%=WebCart.Self.CustomerOrder.TotalPrice.ToString("C") %></div>
            <div class="clear"></div>
        </div>        
    </div>
    <div class="button_wrapper">
            <input type="button" value="Print" onclick="Reciept.Print()"/> <input type="button" value="Continue Shopping" onclick="location.href='/'" />
    </div>
</asp:Content>
